package com.zx.dsptuneup_cloud.Tools;

/**
 * @author tb
 * @date 2021/3/31 - 18:17
 */
public class DeviceConstants {
    /**
     * 设备类型
     */
    public static enum deviceType {
        AUDIO_PROCESSING(1), HANGING_WHEAT(2), TABLE_WHEAT(3);

        deviceType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备音频状态
     */
    public static enum deviceAudioState {
        CLOSE(0), OPEN(1);

        deviceAudioState(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备类型值
     */
    public static enum deviceTypeValue {
        AUDIO_PROCESSING(4810), HANGING_WHEAT(5111), TABLE_WHEAT(5110);

        deviceTypeValue(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备状态
     */
    public static enum deviceState {
        ONLINE(1), BUSY(2), FAULT(3), OFFLINE(4);

        deviceState(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备状态
     */
    public static enum channelType {
        IN(0), OUT(1);

        channelType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备操作类型
     */
    public static enum operationType {
        EQ(1), MUTE(2), VOLUME(3), SWITCH(4);

        operationType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备状态
     */
    public static enum highLowCutType {
        HIGH(0), LOW(1);

        highLowCutType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备远程
     */
    public static enum remoteType {
        LOCAL(0), REMOTE(1);

        remoteType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }

    /**
     * 设备操作响应类型
     * case "410B" ://回复设置音频处理器输入参数 0
     * case "410D" ://回复设置音频处理器输出参数 1
     * case "410F" ://回复设置音频处理器矩阵 2
     * case "4111" ://回复设置音频处理器高低音数据 3
     * case "4113" ://回复设置音频处理器REMOTE 4
     * case "4113" ://回复设置音频处理器基音频端口 5
     */
    public static enum responseType {
        INPUT(0), OUTPUT(1), AUDIO_MATRIX(2), HIGH_LOW_VOLUME(3),REMOTE(4),BASE_PORT(5);

        responseType(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }
}
